import { DEFAULT_TOKEN_KEY } from '../constants/index'
export function getToken(){
    let token = localStorage.getItem(DEFAULT_TOKEN_KEY)
    if(token === null || token === undefined){
        return "";
    }else{
        return token
    }
}
export function setToken(value){
    let token = "";
    if (value != undefined && value != null){
        token = value
    }
    localStorage.setItem(DEFAULT_TOKEN_KEY,token)
}